package com.wzy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author wzy
 * @Date: 2022/1/24 13:50
 * @Description:
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "student")
public class Student extends Model<Student> {
    /**
     * 主键 要
     */
    @TableId(value = "user_id", type = IdType.ASSIGN_ID)
    private String userId;
    /**
     * 名称 要
     */
    @TableField("name")
    private String name;
    /**
     * 备注
     */
    @TableField("hobby")
    private String hobby;
    /**
     * 页大小 要
     */
    @TableField("age")
    private Integer age;


}
